package com.guanzhi.mp.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Mybatis-Plus 练习
 * <p> Package: com.guanzhi.mp.po </p>
 * <p> File: BookPo.java </p>
 * <p> Description:  (图书 实体映射类)</p>
 * <p> Date: 2024/6/15 21:34</p>
 *
 * @author 观之
 * @version 1.0 （代码版本）
 * @email <a href="mailto:guanzhi55634@aliyun.com">观之</a>（邮箱）
 * @date 2024/6/15 21:34
 * @since jdk17（jdk版本）
 */
@Data
@TableName("bs_book")
public class BookPo {

    public Integer id;

    public String isbn;

    private String name;

    @TableField("author")
    private String author;

    private String publisher;

    @TableField("publish_date")
    private Date publishDate;

    @TableField("old_price")
    private BigDecimal oldPrice;

    @TableField("new_price")
    private BigDecimal newPrice;

    @TableField("author_loc")
    private String authorLoc;

    private Integer suit;

    private Integer category;

    private String info;

    @TableField("img_url")
    private String imgUrl;
}
